package com.auxgroup.hr.front.hrverify;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by nitongqian on 2019/5/14.
 */
public class AuxCheckRequest implements Serializable {
    private String procname;
    @JsonProperty(value = "Params")
    private List<AuxCheckParam> params = new ArrayList<>();

    public AuxCheckRequest() {
    }

    public AuxCheckRequest(String procname) {
        this.procname = procname;
        params.add(new AuxCheckParam("@returnvalue", "", true));
    }

    public AuxCheckRequest add(String param, String value) {
        params.add(new AuxCheckParam("@" + param, value, false));
        return this;
    }

    public String getProcname() {
        return procname;
    }

    public void setProcname(String procname) {
        this.procname = procname;
    }

    public List<AuxCheckParam> getParams() {
        return params;
    }

    public void setParams(List<AuxCheckParam> params) {
        this.params = params;
    }
}
